﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Empires.CRL.DataContract;
using Empires.BLL.Core.IService;
using Empires.BLL.Core.Implement;

namespace Empires.PL.ServiceClient
{
    public static class CompanyBlogServiceClient
    {
        public static List<DefaultDataPack> GetBlogList(string copName, int page, int size)
        {
            ICompanyBlogService service = new CompanyBlogService();
            return service.GetBlogList(copName,page,size);
        }
        public static List<DefaultDataPack> GetBlogArticle(string copName, int articleId)
        {
            ICompanyBlogService service = new CompanyBlogService();
            return service.GetBlogArticle(copName, articleId);
        }

        public static int DeleteBlogArticle(string copname, int id)
        {
            ICompanyBlogService service = new CompanyBlogService();
            return service.DeleteBlogArticle(copname, id);
        }

        public static bool UpdateBlogArticle(string copname, BlogDataPack blogDataPack)
        {
            ICompanyBlogService service = new CompanyBlogService();
            return service.UpdateBlogArticle(copname, blogDataPack);
        }

        public static bool AddBlogArticle(string copname, BlogDataPack blogDataPack)
        {
            ICompanyBlogService service = new CompanyBlogService();
            return service.AddBlogArticle(copname, blogDataPack);
        }
    }
}
